package com.panghl;

import com.panghl.listener.NotifyEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringbootAopApplication {

    public static void main(String[] args) {
        ApplicationContext run = SpringApplication.run(SpringbootAopApplication.class, args);
        run.publishEvent(new NotifyEvent("object", "abc@qq.com", "This is the content"));
    }

}
